package lyo.levelup.person;
import lyo.levelup.person.persontest.Person;
import lyo.levelup.person.persontest.PersonType;
import lyo.levelup.person.personfactory.PersonFactory;
public class PersonMain {
    public static void main(String srgs[])
    {
        /*Person employee1 = new Employee("Vasya", "Pupkin", 10.34, 16, PersonType.Player);
        Employee employee2 = new Employee("Vasya", "Pupkin", 10.34, 16, PersonType.Employee);
        employee1.info();
        employee2.getHobby();*/
        
        Person employee1 = PersonFactory.createPerson("Vasya", "Pupkin", 10.34, 16, PersonType.Employee);
        employee1.info();
        Person player1 = PersonFactory.createPerson("Vitaliy", "Sidorov", 100, 4, PersonType.Player);
        player1.info();
    }
}
